<!--
 * @Author: zhang_wenjuan
 * @Date: 2021-05-19 08:46:02
 * @LastEditTime: 2021-06-02 10:28:40
 * @Description: 隐患详情
-->

<template>
    <div id="defectList_page">
        <!-- 顶部导航 -->
        <van-nav-bar title="隐患详情" left-arrow @click-left="back" fixed>
            <template slot="right">
				<div class="parent-circle">
					<div class="child-circle"></div>
				</div>
            </template>
        </van-nav-bar>
        <!-- 主体区域 -->
        <div class="mainPart">
            <!-- 缺陷发现信息 -->
            <div class="findInfoPart">
                <div class="title">
                    <span class="colorBlock"></span>
                    <span class="text">隐患发现信息</span>
                </div>
                <div class="contentPart">
                    <div class="item">
                        <span class="label">隐患来源：</span>
                        <span class="content">人工巡视</span>
                    </div>
                    <div class="item">
                        <span class="label">发现人：</span>
                        <span class="content">张三、李四</span>
                    </div>
                    <div class="item">
                        <span class="label">发现日期：</span>
                        <span class="content">2021-04-01 14:21:43</span>
                    </div>
                    <div class="item">
                        <span class="label">发现班组：</span>
                        <span class="content">苏州张家港变电运维班</span>
                    </div>
                    <div class="item">
                        <span class="label">发现人单位：</span>
                        <span class="content">苏州运维站</span>
                    </div>
                    <div class="item">
                        <span class="label">登记日期：</span>
                        <span class="content">2021-04-01 14:21:43</span>
                    </div>
                    <div class="item">
                        <span class="label">登记人：</span>
                        <span class="content">张三</span>
                    </div>
                </div>
            </div>
            <!-- 隐患描述信息 -->
            <div class="descInfoPart">
                <div class="title">
                    <span class="colorBlock"></span>
                    <span class="text">隐患描述信息</span>
                </div>
                <div class="contentPart">
                    <div class="item">
                        <span class="label">隐患分级：</span>
                        <span class="content"></span>
                    </div>
                    <div class="item">
                        <span class="label">隐患分类：</span>
                        <span class="content">一般</span>
                    </div>
                    <div class="item">
                        <span class="label">隐患类型：</span>
                        <span class="content">缺陷暂不影响运行</span>
                    </div>
                    <div class="item">
                        <span class="label">共性隐患：</span>
                        <span class="content">缺陷暂不影响运行</span>
                    </div>
                    <div class="item">
                        <span class="label">拟采取措施：</span>
                        <span class="content"></span>
                    </div>
                    <div class="item">
                        <span class="label">缺陷描述：</span>
                        <span class="content">张家港变1号主变A相油色谱在线监测装置压力已降为0，张家港变1号主变A</span>
                    </div>
                    <div class="item">
                        <span class="label">消缺状态：</span>
                        <span class="content">未处理</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script type="text/javascript">

export default {
    name: "defectList",
    components: {
       
    },
    data() {
        return {
            
        }
           
    },
    created(){
        // 获取隐患详情
        // this.getDetail()
    },
    mounted() {
     
    },
    methods: {
        /**
         * @description: 返回
         */
        back(){
            // this.$router.push({
            //     name:"HiddenDangerList"
            // })
            this.$router.back();
        },

        /**
         * @description: 获取隐患详情
         */
        getDetail(){
            var self = this
            var params = {
                userId:"",//用户id(必传)
                roleCode:"",//用户角色
                hiddenTroubleInfoId:"",//隐患id(必传)
            }
            GetDetail(params).then(function(res) {
                self.$toast.clear()
                if(res.success){
                    self.detail = res.data
                }
            }).catch(err => {
                self.$toast.clear()
            });
        }
    },
    watch:{
        taskList(){
            
        }
    },
    filters: {
        
    }
}
</script>
<style scoped>
#defectDetail_page {
    width: 100%;
    height: 100%;   
    padding-bottom: 0;
    background: #fff;
}
.van-nav-bar {
    background: #17b49b;
}
.van-nav-bar /deep/ .van-icon {
    color: #fff;
    font-size: 22px;
}
.van-nav-bar /deep/ .van-nav-bar__title {
    color: #fff;
    font-size: 18px;
}
/* 主体区域 */
.mainPart {
    padding: 20px;
    padding-top: 66px;
    background: #fff;
    font-size: 12px;
}
.mainPart .colorBlock {
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #17b49b;
    margin-right: 10px;
}
.mainPart .title {
    height: 30px;
    line-height: 30px;
    font-size: 18px;
    color: #333333;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}
.mainPart .contentPart {
    background: #fafafa;
    padding: 10px;
}
.mainPart .contentPart .item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}
.mainPart .contentPart .label {
    display: inline-block;
    width: 90px;
    /* text-align: right; */
    color: #999;
}
.mainPart .contentPart .content {
    width: calc(100% - 90px);
    color: #333;
    text-align: right;
}
.findInfoPart {
    margin-bottom: 20px;
}
</style>
